package com.witmore.skyline.db.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 驾驶员表
 * </p>
 *
 * @author 豆子高
 * @since 2025-10-27
 */
@Getter
@Setter
@TableName("skyline_driver")
public class DriverDO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 驾驶员id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 驾驶员姓名
     */
    @TableField("driver_name")
    private String driverName;

    /**
     * 手机号
     */
    @TableField("phone")
    private String phone;

    /**
     * 驾驶员照片URL
     */
    @TableField("driver_photo")
    private String driverPhoto;

    /**
     * 所属企业id
     */
    @TableField("org_id")
    private Integer orgId;

    /**
     * 项目部id
     */
    @TableField("project_id")
    private Integer projectId;

    /**
     * 身份证号
     */
    @TableField("id_card")
    private String idCard;

    /**
     * 驾驶证类型(A1,A2,B1,B2,C1等)
     */
    @TableField("license_type")
    private String licenseType;

    /**
     * 驾驶证到期时间
     */
    @TableField("license_expire_date")
    private LocalDate licenseExpireDate;

    /**
     * 状态 0:禁用 1:启用
     */
    @TableField("status")
    private Byte status;

    /**
     * 是否删除 0未删除 1已删除
     */
    @TableField("is_deleted")
    private Byte isDeleted;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;
}
